<script>
	export default {
		onLaunch: function() {
			uni.hideTabBar()
			uni.setStorageSync("theme", 'theme1')
			let theme = uni.getStorageSync('theme') || 'theme1';
			require(`@/theme/${theme}.scss`);
		},
		onShow: function() {
			uni.hideTabBar()
			// console.log('App Show')
		},
		onHide: function() {
			// console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/uni_modules/uview-ui/theme.scss';
	@import "@/static/iconfont/iconfont.css";

	@font-face {
		font-family: PM;
		src: url("./static/font/Poppins-Medium.ttf");
	}

	@font-face {
		font-family: P;
		src: url("./static/font/Poppins.ttf");
	}

	img {
		width: 100%;
		height: 100%;
	}

	uni-view,
	uni-text {
		box-sizing: border-box;
	}

	.uni-tabbar-bottom {
		display: none;
	}

	.uni-tabbar {
		display: none;
	}

	.container {
		display: flex;
		flex-direction: column;
		height: 100vh;
		box-sizing: border-box;
		background: url("static/img/page_bg.png") no-repeat center / cover;
		padding-top: var(--status-bar-height); //通知栏高度
		color: #303133;
		font-size: 28rpx;
		font-family: P;

		.content {
			box-sizing: border-box;
			flex: 1;
			overflow: auto;
			padding: 40rpx 40rpx 0;
			width: 100%;
		}
	}

	.u-popup {
		flex: 0 !important;
	}

	/deep/.u-popup__content {
		background: transparent !important;
	}
</style>